home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1997 April / macformat-049.iso / mac / Demos / Print Artist Demo / PA12-Mac.Dxr / 00122.ls < prev    next >
Encoding:
Text File  |  1996-10-03  |  671 b   |  26 lines

  1. on exitFrame
  2.   global playMode, loadNext, mainPageWait
  3.   startTimer()
  4.   if (playMode = "64KMemOK") or (playMode = "PPCMemOK") then
  5.     if ramNeeded(label("grfx1"), label("grfx2") + 15) < (the freeBlock - 1000) then
  6.       if loadNext = 0 then
  7.         nothing()
  8.       else
  9.         if loadNext = 1 then
  10.           unLoadCast()
  11.           preLoad(label("grfx2"), label("grfx2") + 15)
  12.         end if
  13.       end if
  14.       if the timer < mainPageWait then
  15.         wait(mainPageWait - the timer)
  16.         go(#next)
  17.       end if
  18.     end if
  19.   else
  20.     unLoadCast()
  21.     preLoad(label("grfx2") + 15, label("grfx2") + 15)
  22.     puppetTransition(23, 1, 1)
  23.     go(the frame + 17)
  24.   end if
  25. end
  26.